import request from '@/utils/request'

// 查询水表档案列表
export function listWaterData(query) {
  return request({
    url: '/meterread/dailyusage/list',
    method: 'get',
    params: query
  })
}

// 查询日用水量列表
export function listDailyusage(query) {
  return request({
    url: '/meterread/dailyusage/hisList',
    method: 'get',
    params: query
  })
}

// 查询日用水量列表
export function listDailyusageImg(query) {
  return request({
    url: '/meterread/dailyusage/hisList',
    method: 'get',
    params: query
  })
}

// 查询日用水量详细
export function getDailyusage(id) {
  return request({
    url: '/meterread/dailyusage/' + id,
    method: 'get'
  })
}

// 新增日用水量
export function addDailyusage(data) {
  return request({
    url: '/meterread/dailyusage',
    method: 'post',
    data: data
  })
}

// 修改日用水量
export function updateDailyusage(data) {
  return request({
    url: '/meterread/dailyusage',
    method: 'put',
    data: data
  })
}

// 删除日用水量
export function delDailyusage(id) {
  return request({
    url: '/meterread/dailyusage/' + id,
    method: 'delete'
  })
}
